<!DOCTYPE html>
<html>
	<head>
		<title>MyAgreement</title>
		<%= stylesheet_link_tag :all %>
		
		<%= javascript_include_tag :defaults ,'swfobject' %>
		
		<%= stylesheet_link_tag 'formtastic', 'my_formtastic_changes' , "ui-lightness/jquery-ui-1.8.14.custom.css"  %>

		<!--[if IE 6]><%= stylesheet_link_tag 'formtastic_ie6' %><![endif]-->
		<!--[if IE 7]><%= stylesheet_link_tag 'formtastic_ie7' %><![endif]-->
	</head>
	<body class="application-bg">
		<div id="top-menu">
			<ul>
				<li>
					<%= link_to t(:home),:controller=>"main",:action=>"index" %>
				</li>
				<% unless @current_user.nil? %>
				<li>
					<% if can? :read, Administrator %>
					<%= link_to t(:administrator),:controller=>"administrator",:action=>"index" %>
					<% end %>
				</li>
				<% end %>
				<li>
					<%= link_to t(:help),:controller=>"help",:action=>"index" %>
				</li>

			</ul>
			<div id="account">
				<% unless @current_user.nil? %>
				<li>
					<%= t(:logged_in_as) %> <%= link_to @current_user.login  , @current_user %>
				</li>
				<li>
					<%= link_to t(:logout), user_session_path, :method => :delete %>
				</li>
				<% end %>
			</div>
		</div>
		<div id="application-name">
			<h1> <%= t(:myagreement) %> </h1>
		</div>
		<% unless @current_user.nil? %>
		<%= render 'main/header' %>
		<% end %>
		<%= yield %>
	</body>
</html>
